package com.qf.taobei.entity.po;


import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {

    private Integer id;
    private String name;
    private Double price;
    private Integer flag;
    private Integer imgId;
    private Integer repertory;
    private String context;
    private Integer tId;
    private String pushTime;
    private String pullTime;
    private String submitTime;
    private Integer sale;
    private Integer storeId;
    private Double discountPrice;
    private Integer star;
    private Double proCost;

    public Product(Integer id, String name, Double price, Integer flag, Integer imgId, Integer repertory, String context, Integer tId, String pushTime, Integer sale, Integer storeId, Double discountPrice, Integer star, Double proCost) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.flag = flag;
        this.imgId = imgId;
        this.repertory = repertory;
        this.context = context;
        this.tId = tId;
        this.pushTime = pushTime;
        this.sale = sale;
        this.storeId = storeId;
        this.discountPrice = discountPrice;
        this.star = star;
        this.proCost = proCost;
    }
    public Product( String name, Double price, Integer flag, Integer imgId, Integer repertory, String context, Integer tId, String pushTime, Integer sale, Integer storeId, Double discountPrice, Integer star, Double proCost) {
        this.name = name;
        this.price = price;
        this.flag = flag;
        this.imgId = imgId;
        this.repertory = repertory;
        this.context = context;
        this.tId = tId;
        this.pushTime = pushTime;
        this.sale = sale;
        this.storeId = storeId;
        this.discountPrice = discountPrice;
        this.star = star;
        this.proCost = proCost;
    }
}
